package com.xwh.week3;

import java.math.BigDecimal;
import java.util.Set;
import java.util.TreeSet;

public class Practice9 {

    Set<BigDecimal> TreeSet= new TreeSet<>();
    public static void main(String[] args) {
        Practice9 s = new Practice9();
        for(int i=2;i<=100;i++){
            for(int j=2;j<=100;j++){
                s.method(i,j);
            }
        }
        System.out.println(s.TreeSet.size());
    }
    public  void method(int a,int b){
        double n=Math.pow(a,b);
       TreeSet.add(BigDecimal.valueOf(n));
    }

}
